import uvicorn

import funccollect.config as fc


def start(host: str = '0.0.0.0', port: int = 5000):
    fc.set_ip_port(port)
    from app import __creat_app
    app = __creat_app()
    uvicorn.run(app,
                host=host,
                port=port,
                )


if __name__ == '__main__':
    start()
